/*****************************************************************
			USE DIRECT OBSERVATIONS DATASET 
	TO EVALUATE THE IMPACT OF MASK DISTRIBUTION CAMPAIGN
*****************************************************************/	

use "$droot/data/replication/Obs_BL_EL_combined.dta", clear

foreach v in  mask_had mask_used {
	reg `v' wave i.obs_age obs_female busy_crowded i.activity, cl(villageid)
	sum `v' if e(sample) & wave==0
}


/*****************************************************************
			USE DIRECT OBSERVATIONS DATASET 
	TO EVALUATE THE IMPACT OF VHT TRAINING
*****************************************************************/	

foreach v in  mask_had mask_used {
	reg `v' vhttrain t0`v' i.obs_age obs_female busy_crowded i.activity if bothwaves==1 & wave==1, cl(villageid)
	sum `v' if e(sample) & vhttrain==0
}

/*****************************************************************
			USE PHONE SURVEY DATASET 
	TO EVALUATE THE IMPACT OF MASK DISTRIBUTION CAMPAIGN
*****************************************************************/	

use "$droot/data/replication/Phone_BL_EL_combined.dta", clear

foreach v in imask imask_mkt_cent imask_relig_gath imask_pub_transp  imask_villa_store  imask_another_hh  imask_at_wrk {	
 	reg `v' wave i.female i.educat c.age##c.age marital hh_u5 anynonfar, cl(villageid) 
	sum `v' if e(sample) & wave==0
}
 
 /*****************************************************************
			USE PHONE SURVEY DATASET 
	TO EVALUATE THE IMPACT OF VHT TRAINING
*****************************************************************/	

local y imask imask_mkt_cent imask_relig_gath imask_pub_transp  imask_villa_store  imask_another_hh  imask_at_wrk ///
spread_surfaces spread_droplets spread_breath ///
ugandarisk maskreduce ///
stayhome wearmask avoidgrps  washhands nohandshakes  ///
covid_symptoms losttime_ill /// 
s8_1_mh_anxious s8_2_mh_depressed s8_3_mh_lonely ///


foreach v in `y' {
	reg `v' vhttrain t0`v' i.female i.educat c.age##c.age marital hh_u5 anynonfarm if wave==1, cl(villageid) 
	sum `v' if e(sample) & vhttrain==0
	}
